﻿<!DOCTYPE html>
<html>
<head>
    <title>ShareIt - @ViewBag.Title</title>
    <link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css" />
    <script src="@Url.Content("~/Scripts/jquery-1.4.4.min.js")" type="text/javascript"></script>
</head>

<body>
<div id="logo-wrap">
    <div id="logo">
	    <h1><a href="#">ShareIt</a></h1>
	    <h2> Das Online Tauschportal</h2>
    </div>
</div>

<!-- start header -->
<div id="header">
	<div id="menu">
		<ul>
			<li @if (ViewBag.Title == "Home") {  <text>class = "current_page_item"</text>   } > @Html.ActionLink("Home","Home", "Pages")</li>
            
            @if (Request.IsAuthenticated)
            {
                <li @if (ViewBag.Title == "MeinShareIt")
                    { <text>class = "current_page_item"</text>   } > @Html.ActionLink("Mein ShareIt", "Index", "MyResources")</li>	
            }
            
            <li @if (ViewBag.Title == "Funktion")
                { <text>class = "current_page_item"</text>   } > @Html.ActionLink("Was ist ShareIt und wie Funktioniert es?", "About", "Pages")</li>
			<li @if (ViewBag.Title == "Kontakt")
       { <text>class = "current_page_item"</text>   } > @Html.ActionLink("Kontakt", "Kontakt", "Pages")</li>

       <li @if (ViewBag.Title == "FAQ") {  <text>class = "current_page_item"</text>   } > @Html.ActionLink("FAQ","FAQ", "Pages")</li>
			
			<li>@Html.Partial("_LogOnPartial")</li>
		</ul>
	</div>
</div>
<!-- end header -->
<!-- start page -->
<div id="wrapper">
<div id="wrapper-btm">
<div id="page">
	<!-- start content -->
	<div id="content">
        @if (TempData["success"] != null)
        {
            <div class="success">
                @TempData["success"]
            </div>
        }
        @RenderBody()
	</div>
	<!-- end content -->
	<!-- start sidebar -->
	<div id="sidebar">
        <ul>
        @Html.Partial("_Menu")
        </ul>
	</div>
	<!-- end sidebar -->
	<div style="clear: both;">&nbsp;</div>
</div>
<!-- end page -->
</div>
</div>
<!-- start footer -->
<div id="footer">
	<div id="footer-wrap">
	<p id="legal">(c) 2011 - Designed von der Gruppe PKMMM für die <a href="http://www.hm.edu">Fachhochschule München</a>.</p>
	</div>
</div>
<!-- end footer -->

</body>
</html>